<?php

/**
 * RabbitCMS
 * @version         1.0
 * @author          TrongHM
 */
class Core_Widgets_Fblikebox_Widget extends Tomato_Widget {

    protected function _prepareShow() {
//		$this->_helper->getHelper('viewRenderer')->setNoRender();
        $this->_view->assign('appId', $this->_request->getParam('app_id'));
        $this->_view->assign('pageURL', $this->_request->getParam('page_url'));
        $this->_view->assign('width', $this->_request->getParam('width'));
        $this->_view->assign('height', $this->_request->getParam('height'));
        $this->_view->assign('showFaces', $this->_request->getParam('show_faces'));
        $this->_view->assign('colorScheme', $this->_request->getParam('color_scheme'));
    }

    protected function _prepareConfig() {
        $this->_view->assign('uuid', uniqid());
        $params = $this->_request->getParam('params');
        if ($params) {
            $params = Zend_Json::decode($params);
            $content = $params['content']['value'];
            $this->_view->assign('content', $content);
        }
    }

}
